package com.msg.beans;

import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;


public class TicketBean {

	private String Event_Code;
	private String  ticket_type_code;
	private String  Price_Level_Code;
	private String  Ticket_Level_Name;
	private int Price;
	private int Sold_Seats;
	private int Total_Amount;
	
	
	public String getEvent_Code() {
		return Event_Code;
	}


	public void setEvent_Code(String event_Code) {
		Event_Code = event_Code;
	}


	public int getPrice() {
		return Price;
	}


	public void setPrice(int price) {
		Price = price;
	}


		
	
	public TicketBean(){}


	public JSONObject toJSONObject() {
		JSONObject json = new JSONObject();
		try {
			json.put("Event_Code", Event_Code);
			json.put("Ticket_type_code", ticket_type_code);
			json.put("Ticket_Level_Name", Ticket_Level_Name);
			json.put("Price_Level_Code", Price_Level_Code);
			json.put("Price", Price);
			json.put("Sold_Seats", Sold_Seats);
			json.put("Total_Amount", Total_Amount);
			
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return json;
	}


	



	

	public int getSold_Seats() {
		return Sold_Seats;
	}


	public void setSold_Seats(int sold_Seats) {
		Sold_Seats = sold_Seats;
	}


	public int getTotal_Amount() {
		return Total_Amount;
	}


	public void setTotal_Amount(int total_Amount) {
		Total_Amount = total_Amount;
	}


	public String getTicket_type_code() {
		return ticket_type_code;
	}


	public void setTicket_type_code(String ticket_type_code) {
		this.ticket_type_code = ticket_type_code;
	}


	public String getPrice_Level_Code() {
		return Price_Level_Code;
	}


	public void setPrice_Level_Code(String price_Level_Code) {
		Price_Level_Code = price_Level_Code;
	}


	public String getTicket_Level_Name() {
		return Ticket_Level_Name;
	}


	public void setTicket_Level_Name(String ticket_Level_Name) {
		Ticket_Level_Name = ticket_Level_Name;
	}


	@Override
	public String toString() {
		return "TicketBean [Event_Code=" + Event_Code + ", ticket_type_code="
				+ ticket_type_code + ", Price_Level_Code=" + Price_Level_Code
				+ ", Ticket_Level_Name=" + Ticket_Level_Name + ", Price="
				+ Price + ", Sold_Seats=" + Sold_Seats + ", Total_Amount="
				+ Total_Amount + "]";
	}


	

	
}